package com.yc.springcloud.service.impl;

import com.yc.springcloud.dao.MemberDao;
import com.yc.springcloud.entity.Member;
import com.yc.springcloud.service.MemberService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author DELL
 * @Date 2024/10/3 11:03
 * @Version 1.0
 */
@Service
public class MemberServiceImpl implements MemberService {

	@Resource
	private MemberDao memberDao;


	@Override
	public Member queryMemberById(Long id) {
		Member member = memberDao.queryMemberById(id);
		return member;
	}

	@Override
	public int saveMember(Member member) {
		int affected = memberDao.save(member);
		return affected;
	}
}
